var fs = require("fs");
var path = require("path");
var theme = require("./theme");
var compress = require("./compress");

let settingsPath = path.normalize(__dirname + "/../" + "settings.json");
let settings = JSON.parse(fs.readFileSync(settingsPath, "utf8"));

theme(settings["theme"],settings["category"]);

for (let key in settings["compressed"]) {
  compress(settings["compressed"][key], "/" + key);
}
